package org.code.boot.domain.boot;

import java.math.BigDecimal;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.baomidou.mybatisplus.annotation.TableField;
import org.code.boot.domain.BaseEntity;

/**
 * 火车餐订单对象 biz_meal_order
 * 
 * @author coder
 * @date 2025-08-28
 */
public class BizMealOrder extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 餐食订单ID */
    private Long mealOrderId;

    /** 用户 */
    private Long userId;

    /** 餐食 */
    private Long mealId;

    /** 购买数量 */
    private Long quantity;

    /** 订单金额 */
    private BigDecimal orderAmount;

    /** 火车票订单ID */
    private Long trainOrderId;

    /** 订单状态 */
    private String orderStatus;

    /** 用户名称 */
    @TableField(exist = false)
    private String userIdName;

    /** 餐食名称 */
    @TableField(exist = false)
    private String mealIdName;

    /** 火车票订单信息 */
    @TableField(exist = false)
    private String trainOrderIdName;

    public void setMealOrderId(Long mealOrderId) 
    {
        this.mealOrderId = mealOrderId;
    }

    public Long getMealOrderId() 
    {
        return mealOrderId;
    }

    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }

    public void setMealId(Long mealId) 
    {
        this.mealId = mealId;
    }

    public Long getMealId() 
    {
        return mealId;
    }

    public void setQuantity(Long quantity) 
    {
        this.quantity = quantity;
    }

    public Long getQuantity() 
    {
        return quantity;
    }

    public void setOrderAmount(BigDecimal orderAmount) 
    {
        this.orderAmount = orderAmount;
    }

    public BigDecimal getOrderAmount() 
    {
        return orderAmount;
    }

    public void setTrainOrderId(Long trainOrderId) 
    {
        this.trainOrderId = trainOrderId;
    }

    public Long getTrainOrderId() 
    {
        return trainOrderId;
    }

    public void setOrderStatus(String orderStatus) 
    {
        this.orderStatus = orderStatus;
    }

    public String getOrderStatus() 
    {
        return orderStatus;
    }

    public void setUserIdName(String userIdName) 
    {
        this.userIdName = userIdName;
    }

    public String getUserIdName() 
    {
        return userIdName;
    }

    public void setMealIdName(String mealIdName) 
    {
        this.mealIdName = mealIdName;
    }

    public String getMealIdName() 
    {
        return mealIdName;
    }

    public void setTrainOrderIdName(String trainOrderIdName) 
    {
        this.trainOrderIdName = trainOrderIdName;
    }

    public String getTrainOrderIdName() 
    {
        return trainOrderIdName;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("mealOrderId", getMealOrderId())
            .append("userId", getUserId())
            .append("mealId", getMealId())
            .append("quantity", getQuantity())
            .append("orderAmount", getOrderAmount())
            .append("trainOrderId", getTrainOrderId())
            .append("orderStatus", getOrderStatus())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .toString();
    }
}
